package com.thesis.utils;

public class BusStop {
	public String mStreetNo;
	public String mStreetName;
	public String mDistrict;
	public double mLng;
	public double mLat;
	public char mID;
	
	public BusStop(String streetNo, String streetName, String district, double lat, double lng, char busStopID)
	{
		mStreetNo = streetNo;
		mStreetName = streetName;
		mDistrict = district;
		mLng = lng;
		mLat = lat;
		mID = busStopID;
	}
	
	public BusStop()
	{
	}
	
	public BusStop(String bustop)
	{
		String[] info = bustop.split(", ");
		mStreetNo = info[0];
		mStreetName = info[1];
		mDistrict = info[2];
		mID = (char)Integer.parseInt(info[3]);
		mLng = Double.parseDouble(info[4]);
		mLat = Double.parseDouble(info[5]);
	}
	
	public String getAddress()
	{
		return (mStreetNo + ", " + mStreetName + ", " + mDistrict);
	}
	
	public String getLine()
	{
		return (mStreetNo + ", " + mStreetName + ", " + mDistrict + ", " + (int)mID + ", " + mLng + ", " + mLat);
	}
	
	public char getID()
	{
		return mID;
	}
	 
}
